#ifndef IMAGELIST_H
#define IMAGELIST_H
/*!
  * \file imagelist.h
  * \version 0.1
  */
#include <QList>
#include <image.h>
/*!
  * \class ImageList
  * \brief Class to contain all Image objects
  */
class ImageList
{
private:
    QList<Image> images;
public:
    /*!
      * \fn ImageList():
      * \brief constructor
      */
    ImageList();
    /*!
      * \fn ~ImageList():
      * \brief destructor
      */
    ~ImageList();
    /*!
      * \fn size():
      * \brief return the size of the Image list
      */
    int size() const;
    /*!
      * \fn QList<Image> getList();
      * \brief return the number of Image
      */
    QList<Image> getList();
    /*!
      * \fn void addImage(Image img);
      * \brief save en Image
      * \param id index of the Image
      */
    void addImage(Image img);
    /*!
      * \fn void deletImage(int id);
      * \brief an Image of ImageList and release it
      */
    void addImage(Image img, int index);

    void deletImage(int id);
};

#endif // IMAGELIST_H
